package com.example.keli.base.provider;

import android.widget.ImageView;

import com.example.keli.base.utils.GlideUtil;
import com.yanzhenjie.album.AlbumFile;
import com.yanzhenjie.album.AlbumLoader;

/**
 * Description:
 * Data：2019/3/25-16:46
 * Author: Allen
 */
public class MediaLoader implements AlbumLoader {

    @Override
    public void load(ImageView imageView, AlbumFile albumFile) {
        load(imageView, albumFile.getPath());
    }

    @Override
    public void load(ImageView imageView, String url) {
        GlideUtil.display(imageView.getContext(),imageView,url);
    }
}